<?php if(is_file($this->image)): ?>
    <?php $imgObj = new WSB_Image($this->image); ?>
    <?php $scaledImgObj = $imgObj->getScaledImage($this->width, $this->height); ?>
    <div class="image image-<?php echo $this->moduleId ?> image-layout-<?php echo $this->layout ?>">
        <div class="image-inner-box">
            <dl>
                <dt>
                	<?php if(!empty($this->link)): ?><a href="<?php echo $this->link['href'] ?>" target="<?php echo $this->link['target'] ?>"><?php endif; ?>
                	<?php echo $scaledImgObj->getHtml(array('alt' => $this->alt)) ?>
                	<?php if(!empty($this->link)): ?></a><?php endif; ?>
                </dt>
                <?php if(!empty($this->caption)): ?>
                    <dd style="width:<?php echo $scaledImgObj->getWidth() ?>px">
                        <?php echo $this->caption ?>
                    </dd>
                <?php endif; ?>
            </dl>
        </div>
    </div>
    <div class="image-clear image-clear-<?php echo $this->moduleId ?> image-clear-layout-<?php echo $this->layout ?>"></div>
<?php endif; ?>
